import "pkl:test"

import "library.pkl"

function zeroArgs(): String(!isEmpty) = "Pigeon"

function oneArg(a: String(!isEmpty)): String(!isEmpty) = a

function twoArgs(a: String(!isEmpty), b: String(!isEmpty)): String(!isEmpty) = a + b

function mixed(a: String(!isEmpty), b) = a + b

res1 = zeroArgs()
res2 = oneArg("Pigeon")
res3 = twoArgs("Pigeon", "Parrot")
res4 = mixed("Pigeon", "Parrot")
res5 = library.say("Pigeon")

res6 = test.catch(() -> oneArg(42))
res7 = test.catch(() -> twoArgs("Pigeon", 42))
res8 = test.catch(() -> mixed(42, "Pigeon"))
res9 = test.catch(() -> library.say(42))
